Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for CodeStar CodeBuild clone ref and update CodeStar setup #563

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

sbkok
Copy link
Collaborator

@sbkok sbkok commented Dec 9, 2022

Why?

The CodeStar provider did not support the CODEBUILD_CLONE_REF artifact mode yet. This is useful if you would like to access the git repository, for example to analyze the history or checkout a different branch.

For CodeStar Connections, it was trying to resolve the CodeStar Connection Arn from SSM Parameter Store at the pipeline stack generation. However, resolving parameters should be performed in the input generation step.

What?

  • Added support to define the output_artifact_format in the CodeStar source provider. Allowing CODEBUILD_CLONE_REF to be defined as the output format.
  • Moved resolving the codestar_connection_path in SSM Parameter Store to the pipeline input generation. As this is where it should be performed. The Lambda function resolving these parameters has the required permissions already.
  • Added support for our CloudFormation role to perform codestar-connections:PassConnection, such that CodeStar connections can be configured in the CodePipeline stack that it generates.

By submitting this pull request, I confirm that you can use, modify, copy, and
redistribute this contribution, under the terms of your choice.

@sbkok sbkok added the enhancement New feature or request label Dec 9, 2022
@sbkok sbkok added this to the v3.2.0 milestone Dec 9, 2022
**Why?**

The CodeStar provider did not support the `CODEBUILD_CLONE_REF` artifact mode
yet. This is useful if you would like to access the git repository, for example
to analyze the history or checkout a different branch.

For CodeStar Connections, it was trying to resolve the CodeStar Connection Arn
from SSM Parameter Store at the pipeline stack generation. However, resolving
parameters should be performed in the input generation step.

**What?**

* Added support to define the `output_artifact_format` in the CodeStar source
  provider. Allowing `CODEBUILD_CLONE_REF` to be defined as the output format.
* Moved resolving the `codestar_connection_path` in SSM Parameter Store to the
  pipeline input generation. As this is where it should be performed.
  The Lambda function resolving these parameters has the required permissions
  already.
* Added support for our CloudFormation role to perform
  `codestar-connections:PassConnection`, such that CodeStar connections can be
  configured in the CodePipeline stack that it generates.
@sbkok sbkok force-pushed the feat/code-star-with-full-clone branch from 60f2548 to b116439 Compare December 9, 2022 10:39
@StewartW
Copy link
Contributor

StewartW commented Dec 9, 2022

Is this a regression, I feel like this was already added?

@sbkok
Copy link
Collaborator Author

sbkok commented Dec 9, 2022

It was added for CodeCommit, not for CodeStar apparently. This surprised me as well.

@sbkok sbkok merged commit d484582 into awslabs:master Dec 9, 2022
@sbkok sbkok deleted the feat/code-star-with-full-clone branch December 9, 2022 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants